package com.lin.zoo.controller;

import com.lin.zoo.service.AnimalService;

public class AnimalController {

    private AnimalService animalService=new AnimalService();
    public void delAnimal(Object id){
        animalService.delAnimal(id);
    }//删除数据
    public void setName(Object id,String name){animalService.setName(id,name);}//修改动物名字
    public void setType(Object id,String type){animalService.setType(id,type);}//修改动物类型
    public void setIntroduce(Object id,String introduce){animalService.setIntroduce(id,introduce);}//修改动物介绍
    public void setAge(Object id,String age){animalService.setAge(id,age);}//修改动物年龄
    public void setHealth(Object id,String health){animalService.setHealth(id,health);}//修改健康状态
    public void setPark(Object id,String parkId){animalService.setPark(id,parkId);}//修改所属园区
}
